﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SelectDate.aspx.cs" Inherits="PresentationLayerWebForms.SelectDates" %>

<%@ Register Assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
    Namespace="Microsoft.Reporting.WebForms" TagPrefix="rsweb" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    </asp:UpdatePanel>
    <div id="main_content">
        <div class="grid_column">
            <div id="duration_selector" class="grid">
            <div class="header">
            <a href="#" id="prev_month" ><span class="icon-chevron-left"></span></a>
            <span class="title">Avaibility</span>
            <a href="#" id="next_month"><span  class="icon-chevron-right"></span></a>
            </div>
               <div id="CalArrival"></div>
               <div id="CalDeparture"></div>
            </div>
            <div class="grid">
                
            </div>
            
        </div>
        <div class="grid_column">
            <div class="grid">
                <label>Arrival Date :</label>
                <asp:TextBox ID="txtArrivalDate" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvArrivalDate" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtArrivalDate">Please select arrival date!</asp:RequiredFieldValidator>
            </div>
            <div class="grid">
                <label>Departure Date :</label>
                <asp:TextBox ID="txtDepatureDate" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvDepatureDate" runat="server" ErrorMessage="RequiredFieldValidator"
                    ControlToValidate="txtDepatureDate">Please select departure date!</asp:RequiredFieldValidator>
            </div>
            <div class="grid">
                <label>Nights : </label>
                <asp:TextBox ID="txtNumberOfNight" runat="server" class="dateSelect"></asp:TextBox>
                <asp:RequiredFieldValidator ID="noOfNightReqV" runat="server" ErrorMessage="Number of Night cannot be empty" CssClass="errorMsg" ControlToValidate="txtNumberOfNight"></asp:RequiredFieldValidator>
            </div>
            
            <div class="grid">
                <label>Rooms :</label>
                <asp:DropDownList ID="dplNumberOfRoom" runat="server"  class="dateSelect">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                    <asp:ListItem>4</asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem>6</asp:ListItem>
                    <asp:ListItem>7</asp:ListItem>
                    <asp:ListItem>8</asp:ListItem>
                </asp:DropDownList>
            </div>

            
            <div class="grid">
                <label>Voucher No : </label>
                <asp:TextBox ID="txtVoucherNo" runat="server" MaxLength="8"></asp:TextBox>
                
                <asp:RegularExpressionValidator ID="voucherExpV" runat="server" 
                    ErrorMessage="Voucher number format is not correct." 
                    ValidationExpression="[A-Z]{3}\d{5}" ControlToValidate="txtVoucherNo" 
                    CssClass="errorMsg"></asp:RegularExpressionValidator>

                <asp:CustomValidator ID="vNoCustV" runat="server" 
                    ControlToValidate="txtVoucherNo" ErrorMessage=""></asp:CustomValidator>
            </div>

            <div class="grid_column">
            <asp:Button ID="btnContinue" runat="server" Text="Continues" OnClick="btnContinue_Click" class="btn btn-primary" /></p>
            </div>
        </div>
    </div>
</asp:Content>
